<template>
  <div>
      shop
      <input type="text">
      <input type="text">
      <Rd ref="demo"/>
      <button @click="fun()">点我</button>
  </div>
</template>

<script>
import Rd from "@/components/refdemo.vue"
export default {
    components:{
        Rd
    },
    methods:{
        fun(){
            console.log(this.$refs.demo.fun())
        }
    }
}
</script>

<style>

</style>